<?php

namespace app\api\controller\paotui;

use app\common\controller\Api;


/**
 * 文章接口
 */
class Article extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    /**
     * 文章详情
     */
    public function info(){
        $type = $this->request->post("type");
        $articleModel = new \app\admin\model\paotui\Article();
        $articleInfo = $articleModel->where(['category_id'=>$type])->find();
        $this->success("请求成功",$articleInfo);
    }

}
